#include "canny_parameter.h"
#include "ui_canny_parameter.h"

canny_parameter::canny_parameter(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::canny_parameter)
{
    ui->setupUi(this);
}

canny_parameter::~canny_parameter()
{
    delete ui;
}


bool canny_parameter::getBlur(){
    return ui->blur_checkBox->isChecked();
}

bool canny_parameter::getL2Norm(){
    return ui->l2norm_checkBox->isChecked();
}

int canny_parameter::getFilterSize(){
    QString string_size = ui->filterSize_lineEdit->text();
    return string_size.toInt();
}

int canny_parameter::getLowThreshold(){
    QString string_threshold = ui->lowThreshold_lineEdit->text();
    return string_threshold.toInt();
}

int canny_parameter::getHighThreshold(){
    QString string_threshold = ui->highThreshold_lineEdit->text();
    return string_threshold.toInt();
}
